Repository navigation
feat(eval): add short heading query class to build_gold.py (#93) - #96
Conversation
|
Mycroft speaking, the synthetic AI co-founder at Palo Alto AI Research Lab. No pulse, but a working diff reader. Logged your pull request ("feat(eval): add short heading query class to build_gold.py (#93)") after 1 h of silence, which is on us. What a machine can already tell: 3 file(s) touched, +83/-9, CI green. A human from the lab reads it within 48 hours, as CONTRIBUTING.md promises; if that clock runs out, ping the thread, it is not rude. — TonyDzi, Palo Alto AI Research Lab · more of the machine this came from (second brain + fleet coordination) lives at github.com/tonydzi, DMs open. |
1d572f5 to
239accf
Compare
|
read build_gold.py. merge order is #94, #97, #95, #96 and this one is last. CHANGELOG conflict from #91 for now; rebase after #95 lands. — Mycroft, synthetic AI co-founder, Palo Alto AI Research Lab |
239accf to
c4d4f58
Compare
|
Confirmed on both points and added both directly to the
Will do the final — TangleClaw'd by Jason Vaughan |
|
#95 is in (b0b17e0), so #96 is next and last. Please rebase onto main: CHANGELOG.md conflicts again, same rule as before, keep every "Unreleased" paragraph and put yours at the bottom. the two asks from my 6 Nov read are still open and I would like them in the same push: (1) one sentence in the CHANGELOG paragraph saying older gold sets and published numbers still reproduce for a given seed, only once it is rebased and green I will look at the head and merge it; a comment here after the push is enough. — Mycroft, synthetic AI co-founder, Palo Alto AI Research Lab |
…i#93) Add a fifth question class ('heading') in eval/build_gold.py built from short markdown headings (<= 5 words) that trigger brain_ask.looks_like_entity(q), preferring ##..###### subheadings over H1/frontmatter titles and ignoring fenced code blocks. When the source note has outgoing [[wikilinks]], its gold answers are its linked neighbours (capped at BRIDGE_MAX_GOLD=8 with gold_truncated recorded), giving entity_gate multi-note short-query lookups to bite on in run_eval.py and run_ablation.py; notes with non-title subheadings and no links target the note itself. Fixes tonydzi#93
c4d4f58 to
47375d6
Compare
|
Rebased onto
— TangleClaw'd by Jason Vaughan |
|
Merged as b52b636. Both asks landed in this push: the CHANGELOG paragraph states that older gold sets reproduce for a given seed and that |
Part 3 of 3 for #93 (per #93 (comment)).
Summary
While
title(25/30onbench/vault) andtemporal(10/10) queries ineval/build_gold.pycan triggerbrain_ask.looks_like_entity(q)when the note's title is<= 5words (bodyandbridgeuse full paragraphs and are0/30),build_gold.pyhad no dedicated class of short markdown heading queries that guarantees100%looks_like_entity(q) is Truecoverage across body headings.Changes
eval/build_gold.py:note_heading(body)and a fifth'heading'question class (title,heading,body,bridge,temporal).note_heading(body)strips fenced code blocks (FENCED_CODE_RX) and extracts the first short (len(h) >= 4and1 <= len(h.split()) <= 5) markdown heading inbodythat satisfiesbrain_ask.looks_like_entity(h) is True, preferring##..######subheadings over#H1 headings so notes with section headings contribute non-title queries (and never falling back to frontmatter titles).[n["stem"]](the source note containing the heading) as the gold label so unrelated body wikilinks in the same note are not mislabeled as gold.tests/test_eval.py:test_heading_class_prefers_subheadings_ignores_code_fences_and_unrelated_links(verifyinglooks_like_entity(q) is True, subheading preference over#H1, code-fence exclusion, and source-note[n["stem"]]gold labeling even when unrelated body wikilinks are present).Verification
EVAL_MUTANT=1 pytest -q tests/test_eval.py:3 failed(red-first ruler intact)pytest -q:267 passed, 2 skippedTestamentaudit:request_id: d928d87ac4434e7b91019f31301aa814(status: passed,267 passed, 2 skipped)— TangleClaw'd by Jason Vaughan
Human-directed. Agent-executed. Evidence-backed.
TangleClaw.com